import { request } from "@/utils/request"




export const addComAttendanceLeave = (data:any) => {
  return request.post("/xj/v1/comAttendanceLeave/addComAttendanceLeave", data)
}
// 巡检员-查询请假记录
export const getComAttendanceLeavePage = (data:any) => {
  return request.get("/xj/v1/comAttendanceLeave/getComAttendanceLeavePage", data)
}

// 巡检员-新增巡检记录
export const addComAttendanceWorkInspector = (data:any) => {
  return request.post("/xj/v1/comAttendanceWorkInspector/addComAttendanceWorkInspector", data)
}

// 巡检员-更新巡检记录
export const updateComAttendanceWorkInspector = (data:any) => {
  return request.post("/xj/v1/comAttendanceWorkInspector/updateComAttendanceWorkInspector", data)
}
// 巡检员-查询巡检记录
export const getUserAttendanceWork = (data:any) => {
  return request.get("/xj/v1/getUserAttendanceWork", data)
}

// 巡检员-查询巡检记录
export const getUserDayWorkInspector = (data:any) => {
  return request.get("/xj/v1/getUserDayWorkInspector", data)
}
// 巡检员-查询巡检配置
export const getXjParkConfigList = (data:any) => {
  return request.post("/xj/v1/getXjParkConfigList", data)
}
// 巡检员-查询巡检统计
export const getUserMonthCount = (data:any) => {
  return request.get("/xj/v1/user/getMonthCount", data)
}
// 巡检员-查询巡检日历
export const getUserWorkCalendar = (data:any) => {
  return request.get("/xj/v1/user/getWorkCalendar", data)
}
// 巡检员-查询巡检配置
export const getWorkInspectorPark = (data:any) => {
  return request.post("/xj/v1/user/getWorkInspectorPark", data)
}
// 巡检员-查询巡检轨迹
export const getWorkMovingTrackAll = (data:any) => {
  return request.get("/xj/v1/user/getWorkMovingTrackAll", data)
}
// 巡检员-查询巡检轨迹
export const getWorkMovingTrackList = (data:any) => {
  return request.get("/xj/v1/user/getWorkMovingTrackList", data)
}
// 巡检员选择停车场
export const saveWorkInspectorPark = (data:any) => {
  return request.post("/xj/v1/user/saveWorkInspectorPark", data)
}

// 巡检员-查询是否是日巡检
export const getIsDayWorkInspector = (data:any) => {
  return request.get("/xj/v1/getIsDayWorkInspector", data)
}
//月统计
export const getMonthCount = (data:any) => {
  return request.get("/xj/v1/user/getMonthCount", data)
}

// 巡检员-查询巡检日历
export const getWorkCalendar = (data:any) => {
  return request.get("/xj/v1/user/getWorkCalendar", data)
}
// 当前统计
export const getWorkCount = (data:any) => {
  return request.get("/xj/v1/user/getWorkCount", data)
}

// 巡检员-查询巡检组列表
export const getGroupMembers = (data:any) => {
  return request.get("/xj/v1/user/getGroupMembers", data)
}
